package org.itboys.mongodb.utils.query;

import java.util.regex.Pattern;

public class AceUtils {

	/**
	 * 模糊查询
	 * 
	 * @param obj
	 * @return
	 */
	public static Pattern getPattern(Object obj) {
		return Pattern.compile("^.*" + obj + ".*$", Pattern.CASE_INSENSITIVE);
	}
	
}
